/*
 * @Description:椭圆
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-04 09:56:06
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-04 10:03:18
 */

public class TCircle extends Point {

  // 水平半径
  private int xRadius;
  private int yRadius;

  // 构造器
  public TCircle() {
  }

  public TCircle(int x, int y, int xRadius, int yRadius) {
    super(x, y);
    this.xRadius = xRadius;
    this.yRadius = yRadius;
  }

  // 重写父类中的方法
  @Override
  public void show() {
    System.out.println("[椭圆]x:" + x + ",y:" + y + ",xRadius:" + xRadius + ",yRadius:" + yRadius);
  }

}